package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Category;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpSession;
@Transactional
public interface CategoryService extends IService<Category> {
    R addCategory(Category category, HttpSession session);

    R categoryPage(Integer page, Integer pageSize);

    R deleteCategory(Long id);

    R updateCategory(Category category);

    R categoryList(Integer type);
}
